package com.yc.cloud.userservice.web.controller;

import com.yc.cloud.userservice.entity.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

	@GetMapping("/user/{id}")
	public User findUser(@PathVariable Integer id){
		System.out.println("-----userId:"+id);
		User user=new User(id,"yc","ycc");
		return user;
	}
}
